import random
fileWriter = open("input.txt","w")
y = random.uniform(0.9, 1.1)
i = 1
while i < 10001:
    switch = random.randint(0,10)
    if switch == 0:
        for j in range(0,4):
            y = random.uniform(0.6,0.9)
            fileWriter = open("input.txt", "a+")
            fileWriter.write((str(i) + " " + str(y) + "\n"))
            i += 1
        
        for j in range(0,4):
            y = random.uniform(0.3,0.6)
            fileWriter = open("input.txt", "a+")
            fileWriter.write((str(i) + " " + str(y) + "\n"))
            i += 1
        
        for j in range(0,4):
            y = random.uniform(0,0.3)
            fileWriter = open("input.txt", "a+")
            fileWriter.write((str(i) + " " + str(y) + "\n"))
            i += 1
        
        for j in range(0,4):
            y = random.uniform(0.3,0.6)
            fileWriter = open("input.txt", "a+")
            fileWriter.write((str(i) + " " + str(y) + "\n"))
            i += 1
        
        for j in range(0,4):
            y = random.uniform(0.6,0.9)
            fileWriter = open("input.txt", "a+")
            fileWriter.write((str(i) + " " + str(y) + "\n"))
            i += 1
    else:
        for j in range (0,20):
            y = random.uniform(0.9,1.1)
            fileWriter = open("input.txt", "a+")
            #print (str(i) + " " + str(y))
            #fileWriter.write("hello")
            fileWriter.write((str(i) + " " + str(y) + "\n"))
            i = i + 1
